<!--自定义组件示例-->
<template>
  <Input :value="value" @change="change" />
</template>

<script lang="ts" setup>
import { Input } from "ant-design-vue";

defineProps<{
  value: string;
}>();
const emits = defineEmits<{
  (e: "change", ...args: any[]): void;
}>();

// @ts-ignore
const change = e => {
  emits("change", e.target.value);
};
</script>
